/**
 * Created by widthdrawnm on 16/11/1.
 */
import React, { Component } from 'react';
require("./css/Card.css");

export default class Card extends Component {
    constructor(props) {
        super(props);
    }



    render() {
        return (
            <div style={{margin:"20px"}} className="ant-card ant-card-bordered">
                    <div className="ant-card-head">
                        <h3 className="ant-card-head-title">
                            {this.props.title}
                        </h3>
                    </div>
                <div className="ant-card-body">
                    {this.props.children}
                </div>
            </div>
            )
    }
}

Card.defaultProps = {
    title: "",
    content: ""
}

Card.propTypes = {
    title: React.PropTypes.string,
    content: React.PropTypes.string
}